package com.sys.dto.idto;

import com.sys.entity.ProductEntity;


import java.util.List;
public interface IProductDTO {
    public void save(ProductEntity entity);


    public void delete(Integer id);


    public ProductEntity update(ProductEntity entity,Integer uid);

    public ProductEntity findById(Integer id);
    public ProductEntity changePassword(Integer id,String password);


    public List<ProductEntity> findByProperty(String propertyName, Object value);

    public ProductEntity findByName(String name);

    public List<ProductEntity> findByAge(Object age);


    public List<ProductEntity> findAll();
}
